Skip to content

Conversation

vchomakov
Copy link
Contributor

Problem

Gemini CLI was skipping several Redis MCP tools due to missing or incomplete type information in their parameter schemas:

Skipping tool 'set_vector_in_hash' from MCP server 'redis-mcp' because it has missing types in its parameter schema.
Skipping tool 'json_set' from MCP server 'redis-mcp' because it has missing types in its parameter schema.
Skipping tool 'vector_search_hash' from MCP server 'redis-mcp' because it has missing types in its parameter schema.

Solution

This PR enhances type annotations and schema definitions across all MCP tool modules to ensure proper schema generation and compatibility with strict MCP clients like Gemini CLI.

Changes Made

  • Enhanced type annotations: Added proper type hints for all tool parameters across 9 tool modules
  • Custom type definitions: Implemented JsonValue custom Pydantic type for flexible JSON parameter handling
  • Schema validation: Ensured all tools generate complete parameter schemas with proper type information
  • Consistency improvements: Standardized typing patterns across all tool modules

Copy link
Member

@bobymicroby bobymicroby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@tishun tishun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vchomakov vchomakov merged commit 41e3851 into main Oct 2, 2025
19 checks passed
@tishun tishun deleted the fix/mcp-tool-schema-types branch October 3, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants